//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.mouslisten;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import org.come.Jpanel.ZhuJpanel;
import org.come.until.MessagrFlagUntil;

public class ChoseDangQianMounslisten implements MouseListener {
	private ZhuJpanel zhuJpanel;
	private boolean whether = true;

	public ChoseDangQianMounslisten(ZhuJpanel zhuJpanel) {
		this.zhuJpanel = zhuJpanel;
	}

	@Override
    public void mouseClicked(MouseEvent e) {
		if (this.whether) {
			this.zhuJpanel.getLabnow().setVisible(true);
			this.zhuJpanel.getLabgroups().setVisible(true);
			this.zhuJpanel.getLabbangs().setVisible(true);
			this.zhuJpanel.getLabworld().setVisible(true);
			this.zhuJpanel.getLabnotice().setVisible(true);
		} else {
			this.zhuJpanel.getLabnow().setVisible(false);
			this.zhuJpanel.getLabgroups().setVisible(false);
			this.zhuJpanel.getLabbangs().setVisible(false);
			this.zhuJpanel.getLabworld().setVisible(false);
			this.zhuJpanel.getLabnotice().setVisible(false);
		}

		this.whether = !this.whether;
	}

	@Override
    public void mousePressed(MouseEvent e) {
	}

	@Override
    public void mouseReleased(MouseEvent e) {
	}

	@Override
    public void mouseEntered(MouseEvent e) {
	}

	@Override
    public void mouseExited(MouseEvent e) {
		MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
	}

	public boolean isWhether() {
		return this.whether;
	}

	public void setWhether(boolean whether) {
		this.whether = whether;
	}
}
